package com.procurement.bidding.controller;

import com.procurement.bidding.service.PcmPublicAttachmentService;
import com.ruoyi.common.core.web.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/attachment")
public class PcmPublicAttachmentController extends BaseController {
    @Autowired
    private PcmPublicAttachmentService ppas;

    //查询开标供应商的标书
    public List<Map<String,Object>> selDocument(@RequestBody Map<String,Object> map){
        return ppas.selDocument(Long.valueOf(map.get("middleId").toString()),
                Long.valueOf(map.get("supplierId").toString()));
    }
}
